package com.lanou.moving.eventBus;

import com.lanou.moving.entity.MusicInfo;

import java.util.List;

/**
 * Created by 刘琪 on 15/10/30.
 */
public class MyEventBus {

    public static class PlayMusic {
        int what;

        public PlayMusic(int what) {
            this.what = what;
        }

        public int getWhat() {
            return what;
        }
    }

    public static class PlayControl {
        int what;

        public PlayControl(int what) {
            this.what = what;
        }

        public int getWhat() {
            return what;
        }

    }

    // 接数据
    public static class Deliver {
        List<MusicInfo> musicInfos;
        String songName;

        public Deliver(List<MusicInfo> musicInfos, String songName) {
            this.musicInfos = musicInfos;
            this.songName = songName;
        }

        public List<MusicInfo> getMusicInfos() {
            return musicInfos;
        }

        public String getSongName() {
            return songName;
        }
    }

    // 改变播放模式
    public static class PlayMode {
        int playMode;

        public PlayMode(int playMode) {
            this.playMode = playMode;
        }

        public int getPlayMode() {
            return playMode;
        }
    }

    // 点击播放列表时改变当前播放歌曲
    public static class ChangeMusic {
        int position;

        public ChangeMusic(int position) {
            this.position = position;
        }

        public int getPosition() {
            return position;
        }
    }

    //通知服务打开界面
    public static class OpenMusic {
        boolean isOpen;

        public OpenMusic(boolean isOpen) {
            this.isOpen = isOpen;
        }

        public boolean isOpen() {
            return isOpen;
        }
    }

    // 服务通知activity改变UI
    public static class RefreshUI {
        boolean isPlaying;

        public RefreshUI(boolean isPlaying) {
            this.isPlaying = isPlaying;
        }

        public boolean isPlaying() {
            return isPlaying;
        }
    }

    // 判断当前歌曲是否有匹配歌词
    public static class GetLrcCount {
        int count;

        public GetLrcCount(int count) {
            this.count = count;
        }

        public int getCount() {
            return count;
        }
    }

}
